import Vue from 'vue'
import App from './App.vue'
import router from './router'
import NavType from './components/NavType'
import Swiper from './components/Swiper'
import Pagenation from './components/Pagenation'
import store from '@/store'


//把mock引入项目,让mockServer执行
import "@/mock/mockServer"

Vue.config.productionTip = false

//全局注册组件
Vue.component('NavType',NavType)
Vue.component('Swiper',Swiper)
Vue.component('Pagenation',Pagenation)

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')

